﻿using DBManager;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouKuFilm;

namespace YKTest
{
    class Program
    {
        static void Main(string[] args)
        {
            CollectYouKuMovie cyk = new CollectYouKuMovie();
            cyk.DoGetCurFilms();

            if(cyk.AllFilms !=null && cyk.AllFilms.Count > 0)
            {
                foreach (var one in cyk.AllFilms)
                {
                    if (YouKuTable.hasThis(one)==false)
                    {
                        one.DownLoadImage();
                        YouKuTable.InsertItem(one);
                    }
                }
            }
        }
    }
}
